package cn.kt.ipcount.repository;

import cn.kt.ipcount.domain.IpInfo;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;
import java.util.List;

/**
 * Created by tao.
 * Date: 2022/1/5 9:32
 * 描述:
 */
public interface IpInfoRepository extends JpaRepository<IpInfo, Long>, JpaSpecificationExecutor<IpInfo> {
    List<IpInfo> findAllByOrderByIdDesc(Pageable pageable);

    List<IpInfo> findAllByTimeIsBetween(Date start, Date end);

}
